package com.tiger.cloud.util;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class ConfigUtil {

	/**
	 * 上传文件存储的绝对路径
	 */
	@Value("${upload.absolute.file.path}")
	private String uploadAbsoluteFilePath;
	/**
	 * 访问的base路径
	 */
	@Value("${upload.access.file.path}")
	private String uploadAccessFilePath;

	/**
	 * 默认大小 50M
	 */
	private Long uploadFileMaxSize=1024000l;

	@Value("${download.absolute.file.path}")
	private String downloadAbsoluteFilePath;

//	@Value("${qiniu.access_Key}")
	private String qiNiuAccessKey="P5Ga6Amw8YXhdR7XFo3rw3SORUEjo7m-5BoK0JnT";
//	@Value("${qiniu.secret_Key}")
	private String qiNiuSecretKey="pwN-O4JbbyFsCbxptaYa_ouWspVN3ZpzILFrpGxR";
//	@Value("${qiniu.bucketname}")
	private String qiNiuBucketname="aspcrm";
//	@Value("${qiniu.access_url}")
	private String qiNiuAccessUrl="http://ovw2ou7bi.bkt.clouddn.com";
	
	private String jpushMasterSecret="bd42611208afeb0d08830efe";
	private String jpushAppKey="b0e3c56619dcfacd0958f2f6";

	public String getQiNiuAccessUrl() {
		return qiNiuAccessUrl;
	}

	public String getQiNiuAccessKey() {
		return qiNiuAccessKey;
	}

	public String getQiNiuSecretKey() {
		return qiNiuSecretKey;
	}

	public String getQiNiuBucketname() {
		return qiNiuBucketname;
	}

	public String getDownloadAbsoluteFilePath() {
		return downloadAbsoluteFilePath;
	}

	public Long getUploadFileMaxSize() {
		return uploadFileMaxSize;
	}

	public String getUploadAbsoluteFilePath() {
		return uploadAbsoluteFilePath;
	}

	public String getUploadAccessFilePath() {
		return uploadAccessFilePath;
	}

	public String getJpushMasterSecret() {
		return jpushMasterSecret;
	}

	public String getJpushAppKey() {
		return jpushAppKey;
	}

}
